﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class UserControls_HeaderMenu : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Session["UserID"] = 1;
        if (Session["UserID"] != null)
        {
            Literal1.Text = "<li><a href=\"Profile.aspx\">Trang cá nhân</a></li>";
            Literal1.Text += "<li><a href=\"Edit.aspx\">Thông tin cá nhân</a></li>";
            Literal1.Text += "<li><a href=\"Album.aspx\">Bộ ảnh</a></li>";
            Literal1.Text += "<li class=\"last\"><a href=\"#\">Đăng xuất</a></li>";
        }
        else {
            Response.Redirect("Default.aspx");
        }
    }
}
